package com.ruoyi.cinema.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cinema.mapper.ComboGroupInfoMapper;
import com.ruoyi.cinema.domain.ComboGroupInfo;
import com.ruoyi.cinema.service.IComboGroupInfoService;

/**
 * 套餐组合Service业务层处理
 *
 * @author HHAOYU
 * @date 2020-12-09
 */
@Service
public class ComboGroupInfoServiceImpl extends ServiceImpl<ComboGroupInfoMapper, ComboGroupInfo> implements IComboGroupInfoService  {
    @Autowired
    private ComboGroupInfoMapper comboGroupInfoMapper;

    /**
     * 查询套餐组合
     *
     * @param id 套餐组合ID
     * @return 套餐组合
     */
    @Override
    public ComboGroupInfo selectComboGroupInfoById(Long id)
    {
        return comboGroupInfoMapper.selectComboGroupInfoById(id);
    }

    /**
     * 查询套餐组合列表
     *
     * @param comboGroupInfo 套餐组合
     * @return 套餐组合
     */
    @Override
    public List<ComboGroupInfo> selectComboGroupInfoList(ComboGroupInfo comboGroupInfo)
    {
        return comboGroupInfoMapper.selectComboGroupInfoList(comboGroupInfo);
    }

    /**
     * 新增套餐组合
     *
     * @param comboGroupInfo 套餐组合
     * @return 结果
     */
    @Override
    public int insertComboGroupInfo(ComboGroupInfo comboGroupInfo)
    {
        return comboGroupInfoMapper.insertComboGroupInfo(comboGroupInfo);
    }

    /**
     * 修改套餐组合
     *
     * @param comboGroupInfo 套餐组合
     * @return 结果
     */
    @Override
    public int updateComboGroupInfo(ComboGroupInfo comboGroupInfo)
    {
        return comboGroupInfoMapper.updateComboGroupInfo(comboGroupInfo);
    }

    /**
     * 批量删除套餐组合
     *
     * @param ids 需要删除的套餐组合ID
     * @return 结果
     */
    @Override
    public int deleteComboGroupInfoByIds(Long[] ids)
    {
        return comboGroupInfoMapper.deleteComboGroupInfoByIds(ids);
    }

    /**
     * 删除套餐组合信息
     *
     * @param id 套餐组合ID
     * @return 结果
     */
    @Override
    public int deleteComboGroupInfoById(Long id)
    {
        return comboGroupInfoMapper.deleteComboGroupInfoById(id);
    }
}
